import { Injectable } from '@nestjs/common';

@Injectable()
export class AppService {
  getHello(): string {
    return 'Hello World!';
  }
  getList(): object[] {
    return [
      {
        name: '张三',
        age: 18,
      },
      {
        name: '李四',
        age: 19,
      },
      {
        name: '王五',
        age: 20,
      },
    ];
  }

  getItem(): object {
    return {
      name: '张三',
      age: 18,
    };
  }
}
